package org.huatek.anders.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import org.huatek.anders.service.ApiReportSenderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author anders
 * @since 2018/11/15 21:06
 */
@RestController
public class ApiReportSenderController {

    @Reference
    ApiReportSenderService apiReportSenderService;

    @GetMapping("/generate/report")
    public void  generateReport(){
        apiReportSenderService.generateReports("开始生成报表");
    }
}
